<template>
    <div>
        <button @click="handleClick">返回上一级页面</button>
        <div>Detail</div>
    </div>
</template>

<script setup>
import { inject, onMounted } from 'vue';


const show = inject("show")
const which = inject("which")

onMounted(() => {
    show.value = false
})

const handleClick = () => {
    which.value = true
    show.value = true
}


</script>